package 集合框架.Stack和Queue源码解析;

import java.util.ArrayDeque;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2021-12-30 19:21
 **/
public class TestStackAndQueue {
    public static void main(String[] args) {
        ArrayDeque<Integer> stack = new ArrayDeque<>();
        stack.addLast(1);
        stack.addLast(2);
        stack.addLast(3);
        System.out.println(stack.size());
    }
}
